<?php
include 'config.php';

$mysqli = new mysqli($MYSQL_HOST, $MYSQL_USERNAME, $MYSQL_PASSWORD, $MYSQL_DB_NAME);
if ($mysqli->connect_errno) {
	echo "Failed to connect to MySQL: " . $mysqli->connect_error;
}

$res = $mysqli->query("SELECT `badgeId`, `nome`, `descrizione`, `immagine`, `tags` FROM `badge`");
while ($row = $res->fetch_assoc())
	echo $row['nome'] . "<br>";
?>